# coding: utf-8

# 测试框架，如果算是框架的话
def test_it(need_run=True):
    def test_run(func):
        if need_run:
            print(f"\n---- {func.__name__} stdout ----")
            func()
        else:
            print(f"\n---- {func.__name__} skip ----")
    return test_run


# 测试用例
@test_it(False)
def test_hello():
    print("hello, world!") 

@test_it(True)
def test_first():
    print("first of all!")

@test_it()
def test_next():
    print("next!")